package com.eee.xiang.market.beans;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TCargoIndentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TCargoIndentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTCargoIndentIdIsNull() {
            addCriterion("t_cargo_indent_id is null");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdIsNotNull() {
            addCriterion("t_cargo_indent_id is not null");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdEqualTo(String value) {
            addCriterion("t_cargo_indent_id =", value, "tCargoIndentId");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdNotEqualTo(String value) {
            addCriterion("t_cargo_indent_id <>", value, "tCargoIndentId");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdGreaterThan(String value) {
            addCriterion("t_cargo_indent_id >", value, "tCargoIndentId");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdGreaterThanOrEqualTo(String value) {
            addCriterion("t_cargo_indent_id >=", value, "tCargoIndentId");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdLessThan(String value) {
            addCriterion("t_cargo_indent_id <", value, "tCargoIndentId");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdLessThanOrEqualTo(String value) {
            addCriterion("t_cargo_indent_id <=", value, "tCargoIndentId");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdLike(String value) {
            addCriterion("t_cargo_indent_id like", value, "tCargoIndentId");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdNotLike(String value) {
            addCriterion("t_cargo_indent_id not like", value, "tCargoIndentId");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdIn(List<String> values) {
            addCriterion("t_cargo_indent_id in", values, "tCargoIndentId");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdNotIn(List<String> values) {
            addCriterion("t_cargo_indent_id not in", values, "tCargoIndentId");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdBetween(String value1, String value2) {
            addCriterion("t_cargo_indent_id between", value1, value2, "tCargoIndentId");
            return (Criteria) this;
        }

        public Criteria andTCargoIndentIdNotBetween(String value1, String value2) {
            addCriterion("t_cargo_indent_id not between", value1, value2, "tCargoIndentId");
            return (Criteria) this;
        }

        public Criteria andCargoIdsIsNull() {
            addCriterion("cargo_ids is null");
            return (Criteria) this;
        }

        public Criteria andCargoIdsIsNotNull() {
            addCriterion("cargo_ids is not null");
            return (Criteria) this;
        }

        public Criteria andCargoIdsEqualTo(String value) {
            addCriterion("cargo_ids =", value, "cargoIds");
            return (Criteria) this;
        }

        public Criteria andCargoIdsNotEqualTo(String value) {
            addCriterion("cargo_ids <>", value, "cargoIds");
            return (Criteria) this;
        }

        public Criteria andCargoIdsGreaterThan(String value) {
            addCriterion("cargo_ids >", value, "cargoIds");
            return (Criteria) this;
        }

        public Criteria andCargoIdsGreaterThanOrEqualTo(String value) {
            addCriterion("cargo_ids >=", value, "cargoIds");
            return (Criteria) this;
        }

        public Criteria andCargoIdsLessThan(String value) {
            addCriterion("cargo_ids <", value, "cargoIds");
            return (Criteria) this;
        }

        public Criteria andCargoIdsLessThanOrEqualTo(String value) {
            addCriterion("cargo_ids <=", value, "cargoIds");
            return (Criteria) this;
        }

        public Criteria andCargoIdsLike(String value) {
            addCriterion("cargo_ids like", value, "cargoIds");
            return (Criteria) this;
        }

        public Criteria andCargoIdsNotLike(String value) {
            addCriterion("cargo_ids not like", value, "cargoIds");
            return (Criteria) this;
        }

        public Criteria andCargoIdsIn(List<String> values) {
            addCriterion("cargo_ids in", values, "cargoIds");
            return (Criteria) this;
        }

        public Criteria andCargoIdsNotIn(List<String> values) {
            addCriterion("cargo_ids not in", values, "cargoIds");
            return (Criteria) this;
        }

        public Criteria andCargoIdsBetween(String value1, String value2) {
            addCriterion("cargo_ids between", value1, value2, "cargoIds");
            return (Criteria) this;
        }

        public Criteria andCargoIdsNotBetween(String value1, String value2) {
            addCriterion("cargo_ids not between", value1, value2, "cargoIds");
            return (Criteria) this;
        }

        public Criteria andIndentPriceIsNull() {
            addCriterion("indent_price is null");
            return (Criteria) this;
        }

        public Criteria andIndentPriceIsNotNull() {
            addCriterion("indent_price is not null");
            return (Criteria) this;
        }

        public Criteria andIndentPriceEqualTo(BigDecimal value) {
            addCriterion("indent_price =", value, "indentPrice");
            return (Criteria) this;
        }

        public Criteria andIndentPriceNotEqualTo(BigDecimal value) {
            addCriterion("indent_price <>", value, "indentPrice");
            return (Criteria) this;
        }

        public Criteria andIndentPriceGreaterThan(BigDecimal value) {
            addCriterion("indent_price >", value, "indentPrice");
            return (Criteria) this;
        }

        public Criteria andIndentPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("indent_price >=", value, "indentPrice");
            return (Criteria) this;
        }

        public Criteria andIndentPriceLessThan(BigDecimal value) {
            addCriterion("indent_price <", value, "indentPrice");
            return (Criteria) this;
        }

        public Criteria andIndentPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("indent_price <=", value, "indentPrice");
            return (Criteria) this;
        }

        public Criteria andIndentPriceIn(List<BigDecimal> values) {
            addCriterion("indent_price in", values, "indentPrice");
            return (Criteria) this;
        }

        public Criteria andIndentPriceNotIn(List<BigDecimal> values) {
            addCriterion("indent_price not in", values, "indentPrice");
            return (Criteria) this;
        }

        public Criteria andIndentPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("indent_price between", value1, value2, "indentPrice");
            return (Criteria) this;
        }

        public Criteria andIndentPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("indent_price not between", value1, value2, "indentPrice");
            return (Criteria) this;
        }

        public Criteria andIndentStatusIsNull() {
            addCriterion("indent_status is null");
            return (Criteria) this;
        }

        public Criteria andIndentStatusIsNotNull() {
            addCriterion("indent_status is not null");
            return (Criteria) this;
        }

        public Criteria andIndentStatusEqualTo(Byte value) {
            addCriterion("indent_status =", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusNotEqualTo(Byte value) {
            addCriterion("indent_status <>", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusGreaterThan(Byte value) {
            addCriterion("indent_status >", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("indent_status >=", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusLessThan(Byte value) {
            addCriterion("indent_status <", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusLessThanOrEqualTo(Byte value) {
            addCriterion("indent_status <=", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusIn(List<Byte> values) {
            addCriterion("indent_status in", values, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusNotIn(List<Byte> values) {
            addCriterion("indent_status not in", values, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusBetween(Byte value1, Byte value2) {
            addCriterion("indent_status between", value1, value2, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("indent_status not between", value1, value2, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeIsNull() {
            addCriterion("create_datetime is null");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeIsNotNull() {
            addCriterion("create_datetime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeEqualTo(Date value) {
            addCriterion("create_datetime =", value, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeNotEqualTo(Date value) {
            addCriterion("create_datetime <>", value, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeGreaterThan(Date value) {
            addCriterion("create_datetime >", value, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_datetime >=", value, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeLessThan(Date value) {
            addCriterion("create_datetime <", value, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeLessThanOrEqualTo(Date value) {
            addCriterion("create_datetime <=", value, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeIn(List<Date> values) {
            addCriterion("create_datetime in", values, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeNotIn(List<Date> values) {
            addCriterion("create_datetime not in", values, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeBetween(Date value1, Date value2) {
            addCriterion("create_datetime between", value1, value2, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeNotBetween(Date value1, Date value2) {
            addCriterion("create_datetime not between", value1, value2, "createDatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}